package com.gametheoryserver.gui.comb.state;

import com.gametheoryserver.gui.comb.PlayGame;
import com.gametheoryserver.gui.comb.action.HideStrategyAction;

/**
 * @author Tomas Barak
 * 
 */
public class ShowStrategyState implements IPlayState {

	@Override
	public void refreshGame(PlayGame playWindow) {
		playWindow.getStrategy().setVisible(true);
		playWindow.getGame().getBestMoveLabel().setCaption(playWindow.getGame().getBestMoveString());
		playWindow.getStrategyLabel().setVisible(true);
		playWindow.getGame().getBestMoveLabel().setVisible(true);
		playWindow.getInstructionLabel().setVisible(true);
		playWindow.getHelpLabel().setVisible(true);
		playWindow.getShowStrategyBtn().setCaption("Schovej strategii");
		playWindow.getShowStrategyBtn().addListener(new HideStrategyAction(playWindow));
	}

}
